| 4D Chart v13CT Get object type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D Chart v13
 CT Get object type 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT Get object type ( area ; scope ) -> Function result | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint |   | 4D Chart area | |||||
| scope | Longint |   | Scope of the function -1 = All 0 = Selected objects >0 = Object ID | |||||
| Function result | Integer |   | Object type of the objects in area | |||||
CT Get object type returns the object type for the object(s) in area described by scope.
An object’s type is described by an integer code which cannot be changed once an object is created.
The following table lists all object codes:
| Code | Object Type | 
| 1 | Text | 
| 2 | not used | 
| 3 | Picture | 
| 4 | not used | 
| 5 | Chart | 
| 6 | Rectangle | 
| 7 | Polygon | 
| 8 | Oval | 
| 9 | not used | 
| 10 | Line | 
| 11 | Group | 
This example returns the ID of the selected object in the $ID variable.
 $ID:=CT Get object type(Area;0)
	Product:  4D Chart
	Theme:  CT Objects
	Number:  
        14564
        
        
        
	
	Created:  4D Chart 1